home *** CD-ROM | disk | FTP | other *** search
/ Medabots Cardz / Medabots CD Cardz Sumilidon.bin / mac / assets / sumilidon.dxr / 00029_Script_29 < prev    next >
Text File  |  2001-12-07  |  3KB  |  93 lines

  1. property mysprite, counting, nada
  2. global area, transitionz, destination, amiwideopen
  3.  
  4. on beginsprite me
  5.   transitionz = "open"
  6.   amiwideopen = "yes"
  7.   set mysprite to the spritenum of me
  8.   set the blend of sprite mysprite = 100
  9.   counting = 1
  10. end
  11.  
  12.  
  13. on exitframe me
  14.   if area = 1 then 
  15.     destination =  "construct"
  16.   else if area = 2 then 
  17.     destination =  "robattle"
  18.   else if area = 3 then 
  19.     destination =  "profile"
  20.   else if area = 4 then 
  21.     destination =  "fun"
  22.   else if area = 5 then 
  23.     destination =  "video"
  24.   else if area = 0 then 
  25.     destination =  "home"
  26.   end if
  27.   
  28.   if transitionz = "close" then
  29.           if destination = "construct" or destination = "robattle" or destination = "profile" or destination = "fun" or destination = "home" then
  30.         nada = 1
  31.       else
  32.         puppetsound 2,0
  33.       end if
  34.     
  35.     amiwideopen = "no"
  36.     if counting < 20 then
  37.       counting = counting + 1 
  38.     end if
  39.     if counting = 2 then
  40.       set the member of sprite mysprite = "open1"
  41.     else if counting = 3 then
  42.       set the member of sprite mysprite = "open2"
  43.     else if counting = 4 then
  44.       set the member of sprite mysprite = "open3"
  45.     else if counting = 5 then
  46.       set the member of sprite mysprite = "open4"    
  47.     else if counting = 6 then
  48.       set the member of sprite mysprite = "open5"
  49.       
  50.     else if counting = 7 then
  51.       set the member of sprite mysprite = "open6"
  52.     else if counting = 8 then
  53.       set the member of sprite mysprite = "open7"
  54.       if destination = "construct" or destination = "robattle" or destination = "profile" or destination = "fun" or destination = "home" then
  55.         puppetsound ("close"), 1
  56.       else
  57.         puppetsound 2,0
  58.       end if
  59.       --      puppetsound 2,0
  60.       go to frame destination
  61.       
  62.     else if counting = 9 then
  63.       set the member of sprite mysprite = "open8"
  64.     else if counting = 10 then
  65.       set the member of sprite mysprite = "open9"
  66.     else if counting = 11 then
  67.       set the member of sprite mysprite = "open10"
  68.       
  69.     else if counting = 12 then
  70.       set the member of sprite mysprite = "open9"
  71.     else if counting = 13 then
  72.       set the member of sprite mysprite = "open8"
  73.     else if counting = 14 then
  74.       set the member of sprite mysprite = "open7"    
  75.     else if counting = 15 then
  76.       set the member of sprite mysprite = "open6"
  77.     else if counting = 16 then
  78.       set the member of sprite mysprite = "open5"
  79.     else if counting = 17 then
  80.       set the member of sprite mysprite = "open4"
  81.     else if counting = 18 then
  82.       set the member of sprite mysprite = "open3"
  83.     else if counting = 19 then
  84.       set the member of sprite mysprite = "open2"
  85.     else if counting = 20 then
  86.       set the member of sprite mysprite = "open1"   
  87.       transitionz = "open"
  88.       amiwideopen = "yes"
  89.       counting = 1
  90.     end if
  91.   end if
  92.   
  93. end